#include "ScnsAt24c02.h"

#if defined(SCNS_AT24C02_ENABLE)&&SCNS_AT24C02_ENABLE==1

#include "ScnsIic.h"

static const uint8 device[SCNS_AT24C02_MAX]={0XA0};

ScnsStatus scnsBspAt24c02Write(ScnsAt24c02Enum at2N,const uint8*addr,uint8 addrLen,const uint8*data,uint8 dataLen)
{
    return scnsIicWriteTick(SCNS_IIC_SOFT_1,device[at2N],addr,addrLen,data,dataLen,2);
}

ScnsStatus scnsBspAt24c02Read(ScnsAt24c02Enum at2N,const uint8*addr,uint8 addrLen,uint8*data,uint8 dataLen)
{
    return scnsIicReadTick(SCNS_IIC_SOFT_1,device[at2N],addr,addrLen,data,dataLen,2);
}

#endif
